$("#registerJustify").click(function () {
    var id = $("#idInput").val();
    if (id.replace(/(^\s*)|(\s*$)/g, '') == null || id.replace(/(^\s*)|(\s*$)/g, '') == "") {
        $('#error-info-Register').html("ID值不可为空或您没有输入有效的字符！");
        $('#error-info-Register').css('display', 'inline');
        return ;
    }

    var name = $("#nameInput").val();
    if (name.replace(/(^\s*)|(\s*$)/g, '') == null || name.replace(/(^\s*)|(\s*$)/g, '') == "") {
        $('#error-info-Register').html("Name值不可为空或您没有输入有效的字符！");
        $('#error-info-Register').css('display', 'inline');
        return ;
    }

    var phone = $("#phoneInput").val();
    if (phone.replace(/(^\s*)|(\s*$)/g, '') == null || phone.replace(/(^\s*)|(\s*$)/g, '') == "") {
        $('#error-info-Register').html("Phone Number值不可为空或您没有输入有效的字符！");
        $('#error-info-Register').css('display', 'inline');
        return ;
    }

    var email = $("#emailInput").val();
    if (email.replace(/(^\s*)|(\s*$)/g, '') == null || email.replace(/(^\s*)|(\s*$)/g, '') == "") {
        $('#error-info-Register').html("Email值不可为空或您没有输入有效的字符！");
        $('#error-info-Register').css('display', 'inline');
        return ;
    }

    $.get("/GZGL/mylogin/registerToCheck/", { 'staff_id': id, 'staff_name': name, 'staff_phone': phone, 'staff_email': email }, function (ret) {
        if (ret == "RightUser") {

        }
        if (ret != "RightUser") {
            $('#error-info-Register').html(ret);
            $('#error-info-Register').css('display', 'inline');
        }
    })
});

$("#signUp").click(function () {
    $('#ZhangCheng').addClass("right-panel-active");
});

$("#signIn").click(function () {
    $('#ZhangCheng').removeClass("right-panel-active");
});